<template>
  <div class="backtop" @click="changescroll">
    <p class="iconfont icon-18huidaodingbu"></p>
  </div>
</template>

<script>
export default {
  methods: {
    changescroll () {
      window.scrollTo(0, 0)
    }
  }
}
</script>

<style lang="less" scoped>
.backtop {
  position: fixed;
  padding: 0.3125rem;
  border-radius: 50%;
  bottom: 5rem;
  right: 1.25rem;
  background: #fff;
  z-index: 99;
  .icon-18huidaodingbu {
    color: #b0b0b0;
    font-size: 1.5rem;
  }
}
</style>
